package com.ihisun.tmhcms.core.dao.mechanismdao;

import com.ihisun.tmhcms.core.dto.mechanismdto.EditMechanismDto;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface EditMechanismDao extends JpaRepository<EditMechanismDto,Long> {
    public EditMechanismDto findByMechanismId(String mechanismId);
    @Query(value = "select count(*) from m_mechanism where housekeeper_id=:keerprId",nativeQuery = true)
    public Integer countByHousekeeperId(String keerprId);
}
